package com.orange.core.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 退款申请状态
 */
@AllArgsConstructor
@Getter
public enum ERefundApplyStatus implements IDict {

    NOT_APPLIED(0, "未申请"),

    PENDING(1, "待审核"),

    APPROVED(2, "审核通过"),

    REJECTED(3, "审核拒绝"),

    CANCELED(4, "已取消"),
    ;

    private final int value;
    private final String label;

    public static String getLabel(int value) {
        for (ERefundApplyStatus e : ERefundApplyStatus.values()) {
            if (e.value == value) {
                return e.label;
            }
        }
        throw new IllegalArgumentException("退款申请状态不存在");
    }
} 